package net.huashitong.ssydt.provider.pk.service;


import net.huashitong.ssydt.base.service.LongService;
import net.huashitong.ssydt.pk.entity.SsPkYmdxQuestionRelation;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.12
 */
public interface SsPkYmdxQuestionRelationService extends LongService<SsPkYmdxQuestionRelation> {
    /**
     * 获取一马当先题目
     *
     * @return
     */
    List<SsPkYmdxQuestionRelation> findNewest();

    /**
     * 自动更新题库
     */
    void autoUpdateLastNewQuestion();


    int batchInsert(List<SsPkYmdxQuestionRelation> ssPkYmdxQuestionRelations);
}
